// app.js
import './utils/http'
import './utils/utils'
App({
  userInfo:null,
  globalData: {},
  onLaunch(){
    this.getToken()
  },

  getToken(){
  this.token = wx.getStorageSync('token')
  },

  // 封装存储token的方法
  setUserToken(key,token){
    this[key] = token

    wx.setStorageSync(key, token)
  }
})
